CruiseControl.NET : Using CruiseControl.NET with CVS
This page last changed on Jun 13, 2005 by mroberts.
CruiseControl.NET has the following integration with CVS: Modification Checking via pollingAutomatic Source Updates Automatic labelling on success Web Integration with ViewCVS Setting up a CVS project for use with CruiseControl.NETCruiseControl.NET cannot (yet) automatically checkout a project from CVS - it can only perform updates. Before you start you must therefore checkout the project you want to integrate to a directory on your integration server. You can do this using your normal CVS client (command line, Tortoise etc.)Make a note of the full path of your working directory (the uppermost directory that got checked out) since you're going to need that data for configuring your CruiseControl.NET server. You'll also need a command line client installed on the integration server. We recommend using the latest stable Windows client from CVSHome.Configuring CruiseControl.NETYou need to make sure you use the cvs Source Control block within your project. Read up on this configuration block here : CVS Source Control Block.Automatic Source UpdatesTo have CCNet automatically retrieve the latest version of the source from CVS prior to running a build, you should set the autoGetSource attribute to true.Automatic Labelling (Tagging)To have CCNet automatically retrieve the latest version of the source from CVS prior to running a build, you should set the labelOnSuccess attribute to true. By default, the name of the tag is ver-buildLabel, but you can change the ver- prefix using the tagPrefix property of the CVS provider.The contents of the tag will be the currently checked-out files in the build server's local working copy. Web Integration with ViewCVSIf you have ViewCVS set up, you can link the modifications detected by CruiseControl.NET to the appropriate ViewCVS page by adding the following additional configuration information to the CVS source control section: <webUrlBuilder type="viewcvs"> <url>http://myviewcvsserver:7899/viewcvs/ccnet/NUnitDemo/</url> </webUrlBuilder> Simply change the <url> element to point to the root url for your module in ViewCVS. Using CruiseControl.NET with CVS over SSHVery often when using CVS it is best to use SSH as the authentication/transport protocol. This occurs (for example) if you are using a 'SourceForge' or 'GForge' instance for your source control. If you are setting up such a scenario, you may want to follow the steps below to help get you going:
|
Document generated by Confluence on Jun 26, 2005 17:23 |